import type { BaseResponse, BasePageResp } from "@/api/baseType";
export interface SkuAttrValue {
  attrId: number;
  attrName: string;
  id?: number;
  skuId?: number;
  valueId: number;
  valueName: string;
}
export interface SkuImage {
  id?: number;
  imgName?: string;
  imgUrl?: string;
  isDefault?: string;
  skuId?: number;
  spuImgId?: number;
}
export interface SkuSaleAttrValue {
  id?: number;
  saleAttrId: number;
  saleAttrName: string;
  saleAttrValueId: number;
  saleAttrValueName: string;
  skuId?: number;
  spuId?: number;
}
export interface SkuData {
  category3Id?: number;
  spuId?: number;
  tmId?: number;
  skuDesc: string;
  weight: string;
  id?: number;
  isSale?: number;
  price: number | null;
  skuDefaultImg?: string;
  skuName: string;
  skuAttrValueList: SkuAttrValue[];
  skuImageList: SkuImage[];
  skuSaleAttrValueList: SkuSaleAttrValue[];
}

export interface SkuDataResp extends BaseResponse {
  data: SkuData[];
}
export interface SkuDataRecordsResp extends BasePageResp {
  records: SkuData[];
}
export interface SkuDataPageResp extends BaseResponse {
  data: SkuDataRecordsResp;
}
export interface SkuDataDetailResp extends BaseResponse {
  data: SkuData;
}
